package com.example.sys.org.service;

import com.example.security.dto.UserAuthInfo;
import com.example.core.service.BaseService;
import com.example.sys.org.po.SysRole;
import com.example.sys.org.po.SysUser;
import com.example.sys.org.vo.SysUserVo;

import java.util.List;

public interface SysUserService extends BaseService<SysUser, SysUserVo> {

    public SysUser getUserByLoginName(String userName);

    public List<SysRole> getRoleByUserId(String userId);

    public List<String> getRoleCodeByUserId(String userId);

    public List<String> getRoleIdListByUserId(String userId);

    public UserAuthInfo getUserInfo(String userId);

    public UserAuthInfo getUserInfo();

    public String login(String userName);

    public boolean logout();

    public List<SysUser> getUserInfoNeedCalculate();

    public SysUser loadUserByOpenId(String openId);

    public SysUser registerWxUser(String oepnId);
}
